<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Constants</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="internals2.pdo.pdo-stmt-t.html">pdo_stmt_t definition</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="internals2.pdo.error-handling.html">Error handling</a></div>
 <div class="up"><a href="internals2.pdo.html">PDO 驱动</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="internals2.pdo.constants" class="sect1">
 <h2 class="title">Constants</h2>
 <table id="internals2.pdo.table.attributes" class="doctable table">
 <caption><strong>Database and Statement Attributes Table</strong></caption>
  
   <col style="width: 3inch;" />
   <col style="width: 2.7inch;" />
   <tbody class="tbody">
    <tr>
     <td>
      <p class="para">Attribute</p>
     </td>
     <td>
      <p class="para">Valid value(s)</p>
     </td>
    </tr>

    <tr>
     <td>
      <p class="para">PDO_ATTR_AUTOCOMMIT</p>
     </td>
     <td>
      <p class="para">BOOL</p>
      <p class="para">TRUE if autocommit is set, FALSE otherwise. </p>
      <p class="para">dbh-&gt;auto_commit contains value. Processed by PDO directly.</p>
     </td>
    </tr>

    <tr>
     <td>
      <p class="para">PDO_ATTR_PREFETCH</p>
     </td>
     <td>
      <p class="para">LONG</p>
      <p class="para">Value of the prefetch size in drivers that support it.</p>
     </td>
    </tr>

    <tr>
     <td>
      <p class="para">PDO_ATTR_TIMEOUT</p>
     </td>
     <td>
      <p class="para">LONG</p>
      <p class="para">How long to wait for a db operation before timing out.</p>
     </td>
    </tr>

    <tr>
     <td>
      <p class="para">PDO_ATTR_ERRMODE</p>
     </td>
     <td>
      <p class="para">LONG</p>
      <p class="para">Processed and handled by PDO</p>
     </td>
    </tr>

    <tr>
     <td>
      <p class="para">PDO_ATTR_SERVER_VERSION</p>
     </td>
     <td>
      <p class="para">STRING</p>
      <p class="para">The "<span class="quote">human-readable</span>" string representing the
      Server/Version this driver is currently connected to.</p>
     </td>
    </tr>

    <tr>
     <td>
      <p class="para">PDO_ATTR_CLIENT_VERSION</p>
     </td>
     <td>
      <p class="para">STRING</p>
      <p class="para">The "<span class="quote">human-readable</span>" string representing the Client/Version this driver supports.</p>
     </td>
    </tr>

    <tr>
     <td>
      <p class="para">PDO_ATTR_SERVER_INFO</p>
     </td>
     <td>
      <p class="para">STRING</p>
      <p class="para">The "<span class="quote">human-readable</span>" description of the Server.</p>
     </td>
    </tr>

    <tr>
     <td>
      <p class="para">PDO_ATTR_CONNECTION_STATUS</p>
     </td>
     <td>
      <p class="para">LONG</p>
      <p class="para">Values not yet defined</p>
     </td>
    </tr>

    <tr>
     <td>
      <p class="para">PDO_ATTR_CASE</p>
     </td>
     <td>
      <p class="para">LONG</p>
      <p class="para">Processed and handled by PDO.</p>
     </td>
    </tr>

    <tr>
     <td>
      <p class="para">PDO_ATTR_CURSOR_NAME</p>
     </td>
     <td>
      <p class="para">STRING</p>
      <p class="para">
       String representing the name for a database cursor for use in
       "<span class="quote">where current in &lt;name&gt;</span>" SQL statements.
      </p>
     </td>
    </tr>

    <tr>
     <td>
      <p class="para">PDO_ATTR_CURSOR</p>
     </td>
     <td>
      <p class="para">LONG</p>
      <dl>

       
        <dt>
PDO_CURSOR_FWDONLY</dt>

        <dd>

         <p class="para">Forward only cursor</p>
        </dd>

       
       
       <dt>
PDO_CURSOR_SCROLL</dt>

        <dd>

         <p class="para">Scrollable cursor</p>
        </dd>

       
      </dl>

     </td>
    </tr>

   </tbody>
  
 </table>

 <p class="para">
  The values for the attributes above are all defined in terms of the Zend
  API. The Zend API contains macros that can be used to convert a *zval to a
  value. These macros are defined in the Zend header file, zend_API.h in the
  Zend directory of your PHP build directory. Some of these attributes can be
  used with the statement attribute handlers such as the PDO_ATTR_CURSOR and
  PDO_ATTR_CURSOR_NAME. See the statement attribute handling functions for
  more information.
 </p>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="internals2.pdo.pdo-stmt-t.html">pdo_stmt_t definition</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="internals2.pdo.error-handling.html">Error handling</a></div>
 <div class="up"><a href="internals2.pdo.html">PDO 驱动</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
